PROJECT(iso_fluid)

CMAKE_MINIMUM_REQUIRED(VERSION 2.4)

IF(COMMAND cmake_policy)
  cmake_policy(SET CMP0003 NEW)
ENDIF(COMMAND cmake_policy)


IF(NOT LIBRARY_OUTPUT_PATH)
  SET(LIBRARY_OUTPUT_PARTH ${iso_fluid_BINARY_DIR}/lib)
ENDIF(NOT LIBRARY_OUTPUT_PATH)

OPTION(BUILD_SHARED_LIBS "build shard libraries" ON)

SET(VTK_DIR /org/groups/hughes/opt/lin/VTK-5.6.0)

SET(THIS_INCLUDE_DIRS ${THIS_INCLUDE_DIRS} ${VTK_DIR}/include/vtk-5.6)
SET(THIS_LINK_DIRS ${THIS_LINK_DIRS} ${VTK_DIR}/lib/vtk-5.6)
SET(THIS_LINK_LIBS ${THIS_LINK_LIBS} vtkCommon vtkIO)

ADD_SUBDIRECTORY( src/NURBS_Tool )
ADD_SUBDIRECTORY( src/DStructure )

SET(SRCS main.cpp)

SET(THIS_LINK_LIBS  ${THIS_LINK_LIBS} 
                    NURBS_Tools
                    NURBS_FileIO
                    DStructure ) 

INCLUDE_DIRECTORIES( src/NURBS_Tool
                     src/DStructure
                     ${THIS_INCLUDE_DIRS})

LINK_DIRECTORIES(${THIS_LINK_DIRS})

ADD_EXECUTABLE(fluidsolver ${SRCS})

TARGET_LINK_LIBRARIES(fluidsolver ${THIS_LINK_LIBS})
